﻿#include<iostream>
#include<cstddef>

using namespace std;

int main() {
	cout << "循环创建元素个数为30000的double型数组\n";

	while (true) {
		double* a = new(nothrow) double[30000];

		if (a == NULL) {
			cout << "数组创建失败，程序中断\n";
			break;
		}
	}

	cin.get();
}